module.exports = {
    /**
     * Application configuration section
     * http://pm2.keymetrics.io/docs/usage/application-declaration/
     */
    apps: [
        {
            name: "eg_server_production",
            script: "./bin/www",
            // watch: true,
            ignore_watch: [
                ".idea",
                "node_modules",
                "logs"
            ],
            // instances: 0,
            // exec_mode: "cluster",
            max_memory_restart: "1G",
            error_file: "./logs/err.log",
            out_file: "./logs/out.log",
            merge_logs: false,
            log_date_format: 'YYYY-MM-DD HH:mm:ss',
            env: {
                PM2: "true"
            },
            env_production: {
                NODE_ENV: "production"
            }
        }
    ]
}
